home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6485 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.eden.com!usenet
  2. From: "Shane M. Sadler" <nexus@eden.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: 'sh' in Makefile ???
  5. Date: Sat, 24 Feb 1996 21:33:28 -0600
  6. Organization: Eden Matrix
  7. Message-ID: <312FD888.7593@eden.com>
  8. References: <ZHAO.96Feb21135806@sparta.crl.nmsu.edu>
  9. NNTP-Posting-Host: net-1-101.austin.eden.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. Z. Zhao wrote:
  16. > i have grabbed a c program and its Makefile from somewhere for a
  17. > sun-openwin application. there is a statement as follows in the Makefile:
  18. > OW              :sh = echo ${OPENWINHOME:+openwin}
  19. > it is to get a sunos/openwin env. variable. however, my 'make' doesn't
  20. > get it and says:
  21. > % make: *** No rule to make target 'sh'. Stop.
  22. > And I don't get it. Anyone knows what it is ?
  23.  
  24. 'sh' stands for the Bourne shell or /bin/sh. The macro that determines 
  25. which shell is used to interpret commands in Makefiles is SHELL which 
  26. make may set to /bin/sh by default (though it's safer to do it yourself 
  27. by explicitly defining SHELL=/bin/sh at the top of your description 
  28. files).
  29.  
  30. -- Shane
  31. ====================================================
  32. S.M. Sadler
  33. e-mail: nexus@eden.com
  34. WWW: http://www.eden.com/~nexus
  35.